package arkham.data;

import java.util.Comparator;

/**
 * This interface encompasses everything which can be referenced by name.
 * @author ctheng
 *
 */
public interface NamedEntity {

	/**
	 * Gets the name of this entity
	 * @return the name of this entity
	 */
	public String getName();
	
	public static Comparator<NamedEntity> NameComparator = new Comparator<NamedEntity>()
	{
		public int compare(NamedEntity ne1, NamedEntity ne2)
		{
			return ne1.getName().compareTo(ne2.getName());
		}
	};
}
